package com.maoye.ossp.biz.example.controller;

/**
 * 表单Contorller
 * 
 * @author zhuangwl
 * @date 2013-12-16
 * @version 1.0
 */
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.maoye.ossp.common.web.BaseController;

@Controller
@RequestMapping(value = "biz/example/form/")
public class BizExampleFormController extends BaseController {

	@RequestMapping(value = "elements")
	public String add(HttpServletRequest request, Model model) {
		return resultPage("/biz/example/form/elements", model, request);
	}

	@RequestMapping(value = "validation")
	public String validation(HttpServletRequest request, Model model) {
		return resultPage("/biz/example/form/validation", model, request);
	}
	
	@RequestMapping(value = "dialog")
	public String dialog(HttpServletRequest request, Model model) {
		return resultPage("/biz/example/form/dialog", model, request);
	}
	
	@RequestMapping(value = "processDefinition")
	public String processDefinition(HttpServletRequest request, Model model) {
		return resultPage("/biz/example/form/processDefinition", model, request);
	}

}
